package ru.kreda.webapp.client;

import net.customware.gwt.dispatch.client.DispatchAsync;
import net.customware.gwt.dispatch.client.ExceptionHandler;
import net.customware.gwt.dispatch.client.standard.StandardDispatchAsync;

public class Utils {
	static DispatchAsync dispatcher = new StandardDispatchAsync(new ExceptionHandler() {

		@Override
		public Status onFailure(Throwable e) {
			ErrorHandler.handle(e);
			return Status.CONTINUE;
		}
		
	});

	public static DispatchAsync getDispatcher() {
		return dispatcher;
	}

}
